﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;


/**
* @Author: AdinZ
* @Q  Q : 1454269
* @Email:adinz@adinz.com
* @Created: 2014/3/31 16:44:38
*
* */
namespace Novel.Sys.Model
{
    /* 书架 */
    public class novel_bookcase
    {
        private int iD;
        private int uid;
        private int aid;
        private int cid;
        private string bookname;
        private string chaptername;
        private DateTime created;

        public novel_bookcase()
        {
        }

        public int ID
        {
            get { return iD; }
            set { iD = value; }
        }
        /// <summary>
        /// 会员id
        /// </summary>
        public int Uid
        {
            get { return uid; }
            set { uid = value; }
        }
        /// <summary>
        /// 书本id
        /// </summary>
        public int Aid
        {
            get { return aid; }
            set { aid = value; }
        }
        /// <summary>
        /// 章节id
        /// </summary>
        public int Cid
        {
            get { return cid; }
            set { cid = value; }
        }
        /// <summary>
        /// 书本名称
        /// </summary>
        public string Bookname
        {
            get { return bookname; }
            set { bookname = value; }
        }
        /// <summary>
        /// 章节名称
        /// </summary>
        public string Chaptername
        {
            get { return chaptername; }
            set { chaptername = value; }
        }
        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime Created
        {
            get { return created; }
            set { created = value; }
        }
        public void Reset()
        {
            iD = 0;
            uid = 0;
            aid = 0;
            cid = 0;
            bookname = null;
            chaptername = null;
            created = DateTime.Now;
        }

        public void AssignFrom(novel_bookcase AObj)
        {
            if (AObj == null)
            {
                Reset();
                return;
            }
            iD = AObj.iD;
            uid = AObj.uid;
            aid = AObj.aid;
            cid = AObj.cid;
            bookname = AObj.bookname;
            chaptername = AObj.chaptername;
            created = AObj.created;
        }

    }

}

